<?php
// 中间件配置
return [
    // 别名或分组
    'alias'    => [
        'admin' => \app\admin\middleware\AdminMiddleware::class,
        'operLog' => \app\admin\middleware\OperLogMiddleware::class,
        'cross' => \think\middleware\AllowCrossDomain::class,
        'api' =>[
            \app\api\middleware\Check::class,
            // \app\common\middleware\Throttle::class
        ],
        'orCheck' =>  \app\api\middleware\OrCheck::class,
    ],
    // 优先级设置，此数组中的中间件会按照数组中的顺序优先执行
    'priority' => [],
];
